package com.example.dishfo.myapplication.network.netintr;

import com.example.dishfo.myapplication.network.resbean.HttpBean;

import io.reactivex.Observable;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * 提供与用户功能关联较强的接口方法
 */

public interface UserService {

    @POST
    @FormUrlEncoded
    Observable<HttpBean> login(String useranme, String pwd);

    @POST
    @FormUrlEncoded
    Observable<HttpBean> forgetPwd(String name);

    @POST
    @FormUrlEncoded
    Observable<HttpBean> toSignUp(String email,String user,String pwd);

    @POST
    @FormUrlEncoded
    Observable<HttpBean> signUp(String name,String pwd);

}
